package com.me.common.base;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Getter;
import lombok.Setter;

/**
 * @author jindouyun
 * @since 2022/5/11 16:57
 */
public abstract class BaseRequest<T> {

    /**
     * 默认 10
     */
    @Setter
    @Getter
    private int pageSize = 10;
    /**
     * 默认 1
     */
    @Setter
    @Getter
    private int currentPage = 1;

    public Page<T> page() {
        return new Page<>(pageSize, currentPage);
    }
}
